//
//  AppreciationButton.m
//  Lovelife
//
//  Created by dllo on 15/4/21.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "AppreciationButton.h"
#import "NightManager.h"
@implementation AppreciationButton

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creat];
    }
    return self;
}

- (void)creat
{
    self.photoimageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 110, 160)];
    [self addSubview:self.photoimageView];
    [_photoimageView release];
    
    self.textLabel = [[BaseLabel alloc]initWithFrame:CGRectMake(0, 160, 110, 20)];
    [self addSubview:self.textLabel];
    [_textLabel release];
}

- (void)dealloc
{
    [_photoimageView release];
    [_textLabel release];
    [super dealloc];
}

- (void)setNightDayModel
{
    [NightManager setButtonTitleColorWithButton:self];
    [NightManager setBackgroundColorWithView:self.photoimageView];
    [NightManager setBackgroundColorWithView:self.textLabel];
}

- (void)setLightDayModel
{
    [NightManager setButtonTitleColorWithButton:self];
    [NightManager setBackgroundColorWithView:self.photoimageView];
    [NightManager setBackgroundColorWithView:self.textLabel];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
